package com.ruoyi.project.info.patient.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 患者管理对象 patient
 *
 * @author wzm
 * @date 2022-09-07
 */
public class Patient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String name;

    /** 患者电话 */
    @Excel(name = "患者电话")
    private String phone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idcard;

    @Excel(name = "患者性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /** 患者年龄 */
    @Excel(name = "患者年龄")
    private Integer age;

    /** 患者地址 */
    @Excel(name = "患者地址")
    private String address;


    /** 所属医院 */
    private Long deptId;

    /** 首次邀请医生 */
    private String dPhone;

    /** 首次邀请医生 */
    @Excel(name = "首次邀请医生")
    private String dName;

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setIdcard(String idcard)
    {
        this.idcard = idcard;
    }

    public String getIdcard()
    {
        return idcard;
    }
    public void setAge(Integer age)
    {
        this.age = age;
    }

    public Integer getAge()
    {
        return age;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setdPhone(String dPhone)
    {
        this.dPhone = dPhone;
    }

    public String getdPhone()
    {
        return dPhone;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("idcard", getIdcard())
            .append("age", getAge())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("dPhone", getdPhone())
            .toString();
    }
}
